Optimal. Leaf size=54 \[ \frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{8} b c^3 x^2-\frac{1}{8} b c^4 \tanh ^{-1}\left (\frac{x^2}{c}\right )+\frac{1}{24} b c x^6 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0417084, antiderivative size = 54, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.357, Rules used = {6097, 263, 275, 302, 207} \[ \frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{8} b c^3 x^2-\frac{1}{8} b c^4 \tanh ^{-1}\left (\frac{x^2}{c}\right )+\frac{1}{24} b c x^6 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6097
Rule 263
Rule 275
Rule 302
Rule 207
Rubi steps
\begin{align*} \int x^7 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right ) \, dx &=\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{4} (b c) \int \frac{x^5}{1-\frac{c^2}{x^4}} \, dx\\ &=\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{4} (b c) \int \frac{x^9}{-c^2+x^4} \, dx\\ &=\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{8} (b c) \operatorname{Subst}\left (\int \frac{x^4}{-c^2+x^2} \, dx,x,x^2\right )\\ &=\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{8} (b c) \operatorname{Subst}\left (\int \left (c^2+x^2+\frac{c^4}{-c^2+x^2}\right ) \, dx,x,x^2\right )\\ &=\frac{1}{8} b c^3 x^2+\frac{1}{24} b c x^6+\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )+\frac{1}{8} \left (b c^5\right ) \operatorname{Subst}\left (\int \frac{1}{-c^2+x^2} \, dx,x,x^2\right )\\ &=\frac{1}{8} b c^3 x^2+\frac{1}{24} b c x^6+\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (\frac{c}{x^2}\right )\right )-\frac{1}{8} b c^4 \tanh ^{-1}\left (\frac{x^2}{c}\right )\\ \end{align*}
Mathematica [A] time = 0.0140286, size = 73, normalized size = 1.35 \[ \frac{a x^8}{8}+\frac{1}{8} b c^3 x^2+\frac{1}{16} b c^4 \log \left (x^2-c\right )-\frac{1}{16} b c^4 \log \left (c+x^2\right )+\frac{1}{24} b c x^6+\frac{1}{8} b x^8 \tanh ^{-1}\left (\frac{c}{x^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.016, size = 64, normalized size = 1.2 \begin{align*}{\frac{{x}^{8}a}{8}}+{\frac{b{x}^{8}}{8}{\it Artanh} \left ({\frac{c}{{x}^{2}}} \right ) }-{\frac{b{c}^{4}}{16}\ln \left ( 1+{\frac{c}{{x}^{2}}} \right ) }+{\frac{bc{x}^{6}}{24}}+{\frac{b{c}^{3}{x}^{2}}{8}}+{\frac{b{c}^{4}}{16}\ln \left ({\frac{c}{{x}^{2}}}-1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.989646, size = 84, normalized size = 1.56 \begin{align*} \frac{1}{8} \, a x^{8} + \frac{1}{48} \,{\left (6 \, x^{8} \operatorname{artanh}\left (\frac{c}{x^{2}}\right ) +{\left (2 \, x^{6} + 6 \, c^{2} x^{2} - 3 \, c^{3} \log \left (x^{2} + c\right ) + 3 \, c^{3} \log \left (x^{2} - c\right )\right )} c\right )} b \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.74963, size = 122, normalized size = 2.26 \begin{align*} \frac{1}{8} \, a x^{8} + \frac{1}{24} \, b c x^{6} + \frac{1}{8} \, b c^{3} x^{2} + \frac{1}{16} \,{\left (b x^{8} - b c^{4}\right )} \log \left (\frac{x^{2} + c}{x^{2} - c}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 18.4974, size = 51, normalized size = 0.94 \begin{align*} \frac{a x^{8}}{8} - \frac{b c^{4} \operatorname{atanh}{\left (\frac{c}{x^{2}} \right )}}{8} + \frac{b c^{3} x^{2}}{8} + \frac{b c x^{6}}{24} + \frac{b x^{8} \operatorname{atanh}{\left (\frac{c}{x^{2}} \right )}}{8} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.33246, size = 96, normalized size = 1.78 \begin{align*} \frac{1}{16} \, b x^{8} \log \left (\frac{x^{2} + c}{x^{2} - c}\right ) + \frac{1}{8} \, a x^{8} + \frac{1}{24} \, b c x^{6} + \frac{1}{8} \, b c^{3} x^{2} - \frac{1}{16} \, b c^{4} \log \left (x^{2} + c\right ) + \frac{1}{16} \, b c^{4} \log \left (-x^{2} + c\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]